<template>
  <div class="van-preview">
    <img :src="`${$publicPath}assets/${name}.${accept}`" alt="" srcset="" />
  </div>
</template>

<script>
export default {
  name: 'van-preview',
  props: {
    name: String,
    accept: {
      type: String,
      default: 'png'
    }
  },
};
</script>

<style lang="less">
.van-preview {
  background: #fff;
  width: 100%;

  img {
    width: 100%;
  }
}
</style>
